import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { ZpRandKeyResultVO } from '@/api/boss/push/types';

/**
 * 登录二维码
 * @param data
 */
export const randQrCode = () : AxiosPromise<ZpRandKeyResultVO> => {
  return request({
    url: '/boss/randQrCode',
    method: 'post',
  });
};

/**
 * 扫码结果
 * @param data
 */
export const scan = (uuid ?: String) => {
  return request({
    url: '/boss/scan',
    method: 'get',
    timeout: 60000,
    params: {
      'uuid': uuid
    }
  });
};
